package cn.codeforfun.user;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {

  @Resource
  private UserDao userDao;


  @GetMapping
  public List<User> list() {
    return userDao.findAll();
  }

}
